package com.lsy.mysqlAssistant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.V;
import dev.langchain4j.service.spring.AiService;

import static dev.langchain4j.service.spring.AiServiceWiringMode.EXPLICIT;

@AiService(wiringMode = EXPLICIT, chatModel = "openAiChatModel", chatMemoryProvider = "chatMemoryProviderMysql" )
public interface MysqlAgent {



    @SystemMessage(fromResource = "mysql-prompt-template.txt")
    MySqlAgentVo chat(
            @MemoryId int memoryId,
            @UserMessage String userMessage,
            @V("tableInfo") String tableInfo
    );



}




